package com.shengwei.truck.driver.bean;


import com.shengwei.truck.driver.utils.DateTimeUtils;

/**
 * socket通信发送的位置包
 */
public class LocationPack {
    private String auth; //登录token
    private String taskId; //任务ID
    private String lng; // 经度
    private String lat;  //纬度
    private long upTime; //定位时间
    private String upTimeStr; //定位时间
    public long getUpTime() {
        return upTime;
    }
    public void setUpTime(long upTime) {
        this.upTime = upTime;
    }

    public void setUpTimeStr(long upTime) {
       String dateStr = DateTimeUtils.timeStampToDateString(upTime);
        this.upTimeStr = dateStr;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }
}
